;=====================================================================
;
;
;   ██████╗  ██████╗ ██╗  ██╗   ██╗██████╗  █████╗ ██████╗
;   ██╔══██╗██╔═══██╗██║  ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
;   ██████╔╝██║   ██║██║   ╚████╔╝ ██████╔╝███████║██████╔╝
;   ██╔═══╝ ██║   ██║██║    ╚██╔╝  ██╔══██╗██╔══██║██╔══██╗
;   ██║     ╚██████╔╝███████╗██║   ██████╔╝██║  ██║██║  ██║
;   ╚═╝      ╚═════╝ ╚══════╝╚═╝   ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝
;
;;=====================================================================
[bar/mybar]
monitor = ${env:MONITOR:HDMI-0}
width = 100%
height = 25
radius = 6.0
fixed-center = false
background = ${xrdb:background}
foreground = ${xrdb:foreground}
line-size = 1
line-color = ${xrdb:background}
border-size = 4
border-color = ${xrdb:background}
padding-left = 0
padding-right = 2
module-margin-left = 1
module-margin-right = 2
bottom = false
radius-top = 0.0
radius-bottom = 0.0
wm-name = bspwm

font-0 = misc fixed:pixelsize=10;1
font-1 = unifont:fontformat=truetype:size=9:antialias=true;2
font-2 = siji:pixelsize=10;1
font-3 = "Fantasque Sans Mono:pixelsize=10;3"
font-4 = "Iosevka Nerd Font:pixelsize=10;3"

modules-left = workspaces mpd
modules-center =  
modules-right = sysmenu memory cpu date xkeyboard  

tray-position = right
tray-padding = 3
tray-maxsize = 14
tray-background = ${xrdb:background}
tray-offset-x = 0
tray-offset-y = 0

override-redirect = false

scroll-up = bspwm-desknext
scroll-down = bspwm-deskprev

cursor-click = pointer
cursor-scroll = ns-resize

[module/xwindow]
type = internal/xwindow
label = %title:0:50:%

[module/xkeyboard]
type = internal/xkeyboard
format-prefix = " "
format-prefix-foreground = ${xrdb:color0}
format-prefix-underline = ${xrdb:color4}

label-layout = %layout%
label-layout-underline = ${xrdb:color4}

label-indicator-padding = 3
label-indicator-margin = 1
label-indicator-background = ${xrdb:color1}
label-indicator-underline = ${xrdb:color1}

[module/workspaces]
type = internal/xworkspaces
pin-workspaces = false
enable-click = true
enable-scroll = true
format-padding = 1

icon-default = 

format = <label-state>
format-background = ${xrdb:background}
label-active = 
label-occupied = 
label-urgent = 
label-empty = 

label-empty-padding = 1
label-active-padding = 1
label-urgent-padding = 1
label-occupied-padding = 1

label-empty-foreground = ${xrdb:color3}
label-active-foreground = ${xrdb:color4}
label-urgent-foreground = ${xrdb:color2}
label-occupied-foreground = ${xrdb:color6}

;[module/bspwm]
;type = internal/bspwm

;label-focused = %index%
;label-focused-background = ${xrdb:color3}
;label-focused-underline= ${xrdb:color4}
;label-focused-padding = 2

;label-occupied = %index%
;label-occupied-padding = 2

;label-urgent = %index%!
;label-urgent-background = ${xrdb:color2}
;label-urgent-padding = 2

;label-empty = %index%
;label-empty-foreground = ${xrdb:color3}
;label-empty-padding = 2

[module/mpd]
type = internal/mpd
format-online = <label-song>  <icon-prev> <icon-stop> <toggle> <icon-next>
format-online-foreground = ${xrdb:color3}
icon-prev = 
icon-stop = 
icon-play = 
icon-pause = 
icon-next = 

label-song-maxlen = 45
label-song-ellipsis = true

[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = ${xrdb:color3}
format-underline = ${xrdb:color4} 
label = %percentage%%

[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-prefix-foreground = ${xrdb:color3}
format-underline = ${xrdb:color4}
label = %mb_used%

[module/alsa]
type = internal/alsa
format-volume = "<label-volume>"
format-volume-foreground = ${xrdb:foreground}
label-volume = " %percentage% "
label-volume-foreground = ${xrdb:foreground}
;format-volume-background = ${colors.1}
label-volume-padding = 1
format-muted-prefix = " "
format-muted-padding = 2
format-muted-foreground = ${xrdb:color3}
;format-muted-background = ${colors.background}
label-muted = "muted"

[module/date]
type = internal/date
interval = 5

date =
date-alt = " %d-%m-%Y"

time = %H:%M:%S
time-alt = %H:%M:%S

format-prefix = ""
format-prefix-foreground = ${xrdb:color3}
format-underline = ${xrdb:color4}

label = %date% %time%

[module/sysmenu]
type = custom/text

content = "   "
content-background = ${xrdb:background}
content-foreground = ${xrdb:color2}
content-padding = 1

click-left = ~/.config/polybar/scripts/powermenu
click-right = ~/.config/polybar/scripts/powermenu-alt

[global/wm]
margin-top = 5
margin-bottom = 5

; vim:ft=dosini



